/*
 * @Description: 
 */

import constant from '@/utils/constant'

// 获取token
export function getToken() {
  return localStorage.getItem(constant.TOKEN)
}

// 设置token
export function setToken(str: string) {
  localStorage.setItem(constant.TOKEN, str)
}

// 清空token
export function removeToken() {
  localStorage.removeItem(constant.TOKEN)
}